package com.zbkj.front;

import com.binarywang.spring.starter.wxjava.miniapp.config.WxMaAutoConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.net.URL;

@Slf4j
@SpringBootTest
public class CrmebFrontApplication {
    public static void main(String[] args) {
        String urlString = "https://brandh5.test153-project.laodiyuncha.com/";
        try {
            URL url = new URL(urlString);
            String host = url.getHost();
            System.out.println("Extracted Host: " + host);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
